import instance from "../request"


export const safety = {
    getSafetyInfoByDuration: (data) => {
        return instance({
            url: '/safety/getSafetyInfoByDuration',
            method: "post",
            data
        })
    },
    getSafetyViolationByDuration: (data) => {
        return instance({
            url: '/safety/getSafetyViolationByDuration',
            method: "post",
            data
        })
    },
    deleteSafetyViolation: (data) => {
        // console.log(data)
        return instance({
            url: '/safety/deleteSafetyViolation',
            method: "post",
            data
        })
    },
    getPPLCountByDuration: (data) => {
        return instance({
            url: "/safety/getPPLCountByDuration",
            method: "post",
            data
        })
    }
}